package com.seecen.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.seecen.pojo.FavoritesVideos;
import com.seecen.service.FavoritesVideosService;
import com.seecen.mapper.FavoritesVideosMapper;
import com.seecen.utils.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 13495
* @description 针对表【t_favorites_videos】的数据库操作Service实现
* @createDate 2025-07-23 20:47:10
*/
@Service
public class FavoritesVideosServiceImpl extends ServiceImpl<FavoritesVideosMapper, FavoritesVideos>
    implements FavoritesVideosService{

    @Autowired
    private FavoritesVideosMapper favoritesVideosMapper;

    @Override
    public Result getFavoriteVideosAll() {
        List<FavoritesVideos> favoritesVideosList = favoritesVideosMapper.selectList(null);
        return Result.ok(favoritesVideosList);
    }
}




